#import "GameKit/GameKit.h"

@interface GCManager : NSObject <GKLeaderboardViewControllerDelegate, GKAchievementViewControllerDelegate>
{
	bool mSupport;						// 设备是否支持Game Center
	bool mLogin;						// 是否登录成功
	int mFinishedAmCount;				// 已经完成的成就数量，访问失败为－1
	UIViewController* mView;
	NSMutableDictionary* mAmDict;
	NSMutableDictionary* mAmDescDict;
}

@property (nonatomic,readonly) bool isLogin;
@property (nonatomic,readonly) int finishedAmCount;

// 内部使用
-(void)checkSupport;
-(void)loadAchievements;

-(id)initWithView:(UIViewController*)view;
-(void)authenticateLocalPlayer;
-(void)showLeaderboard:(int)no;
-(void)showAchievements;
-(void)reportAm:(int)no percent:(float)percent;
-(void)reportScore:(int)score category:(int)no;
-(void)resetAchievements;

@end